<!DOCTYPE html>
<html ng-app='test'>
  <head>
    <meta charset="utf-8">
    <title></title>
    <script src="angular.js"></script>
    <script type="text/javascript">
      let mod= angular.module('test',[]);

      mod.controller('main',function($scope,$http,$q){
        $q.all([
          $http.get('data/1.txt'),
          $http.get('data/2.txt'),
          $http.get('data/3.txt')
        ]).then(arr=>{
          //let data1= arr[0].data;
          //let data2= arr[1].data;
          //let data3= arr[2].data;

          $scope.data1=arr[0].data;
          $scope.data2=arr[1].data;
          $scope.data3=arr[2].data;

          //console.log(arr);
          //console.log(data1,data2,data3);
        },()=>{
          alert('error');
        });
      });
    </script>
  </head>
  <body ng-controller='main'>
    {{data1}},{{data2}},{{data3}}
  </body>
</html>
